package com.informatics.polymer.client.SubstructureSearch;

import com.google.gwt.user.client.ui.Image;
import com.smartgwt.client.widgets.grid.ListGridRecord;
/**
 * Class to create a custom list grid record to contain information on substructure
 * search results to be displayed in a listgrid.
 * @author ed
 * @version 1.0
 */
public class SubstructureSearchDataRecord extends ListGridRecord {
	/**
	 * The unique ID for the  repeat unit.
	 */
	private String repeatUnitID;
	/**
	 * Image of the repeat unit.
	 */
	private Image repeatUnitImage;
	/**
	 * String representation of the image of resource.
	 */
	private String img;
	/**
	 * Creates a SubstructureSearchDataRecord.
	 */
	public SubstructureSearchDataRecord(){
	}
	/**
	 * Creates a SubstructureSearchDataRecord.
	 * @param id - repeat unit ID.
	 * @param anImage - repeat unit image.
	 */
	public SubstructureSearchDataRecord(final String id, final Image anImage){
		this.repeatUnitID = id;
		this.repeatUnitImage=anImage;
	}
	/**
	 * Creates a SubstructureSearchDataRecord.
	 * @param id - repeat unit ID.
	 * @param imag - repeat unit image (String representation).
	 */
	public SubstructureSearchDataRecord(final String id, final String imag){
		this.repeatUnitID=id;
		this.img=imag;
	}
	/**
	 * Gets image resource.
	 * @return String representation for the image resource.
	 */
	public String getImg(){
		return img;
	}
	/**
	 * Gets ID.
	 * @return String representation of the ID.
	 */
	public String getID(){
		return repeatUnitID;
	}
	/**
	 * Gets image.
	 * @return Image representation of the repeat unit.
	 */
	public Image getImage(){
		return repeatUnitImage;
	}

}
